package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目对象 project_info
 * 
 * @author xuliang
 * @date 2024-03-29
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class ProjectInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    /** 合计间接费用 */
    //@ExcelProperty(value = "其他间接费用")
    private BigDecimal indirectCost;

    /** 产值 */
    //@ExcelIgnore
    private BigDecimal output;

    /** 合计采购成本 */
    //@ExcelProperty(value = "采购成本")
    private BigDecimal procurementCost;

    /** 利润 */
    //@ExcelProperty(value = "利润")
    private BigDecimal profit;

    /** 项目编号 */
    //@ExcelIgnore
    private String projectCode;

    /** 项目名 */
    //@ExcelIgnore
    private String projectName;

    /** 合计税额 */
    //@ExcelProperty(value = "已发生成本理论进项税额")
    private BigDecimal totalTax;

    /** 合计成本 */
    private BigDecimal cost;

    /** 备注 */
    private String remark;

    /** 合同总价款 */
    private BigDecimal totalContract;

    /** 内部考核利润率 */
    private Double assessRate;

    private String sortKey;

    private String sortOrder;

    //public void calculateProfit() {
    //
    //    if(!(output == null || BigDecimal.ZERO.equals(output))){
    //        profit =  output.subtract(procurementCost.add(indirectCost).subtract(totalTax));
    //    }else {
    //        output = BigDecimal.valueOf(0);
    //    }
    //
    //}


}
